.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    line-height: 100%;
    font-family: 'Open Sans', Helvetica, sans-serif;
}

.top-box,
.bottom-box {
    width: 100%;
    position: absolute;
    cursor: pointer;
    border-radius: 5px;
    box-sizing: border-box;
    transition: transform 0.5s ease;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
}

.top-box {
    top: 0;
    left: 0;
    height: 280px;
    background: rgb(121, 199, 254) url(./img/test.jpg) no-repeat center center / cover;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 130px 100%, 130px 220px, 0% 220px);
}

.bottom-box {
    bottom: 0;
    left: 0;
    height: 170px;
    background: #0008;
    clip-path: polygon(0% 0%, 120px 0%, 120px 60px, 100% 60px, 100% 100%, 0% 100%);
    padding: 10px;

    .price {
        position: absolute;
        top: 0;
        left: 0;
        margin: 10px;
        width: 100px;
        height: 40px;
        border-radius: 5px;
        font-size: 20px;
        font-weight: 600;
        line-height: 40px;
        color: #0008;
        background-color: azure;
        text-align: center;
    }

    .content {
        position: absolute;
        top: 60px;
        left: 0;
        margin: 10px;
        width: calc(100% - 20px);
        height: 80px;
        line-height: 25px;
        color: #fff;
        text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);

        .title {
            font-size: 25px;
            font-weight: 600;
        }

        .introduce {
            font-size: 16px;
            font-weight: 300;
        }
    }

    .collect {
        position: absolute;
        display: flex;
        justify-content: flex-end;
        bottom: 0;
        left: 0;
        margin: 3px 10px;
        width: calc(100% - 20px);
        height: 30px;
        line-height: 30px;
        color: #fff;

        .heart {
            font-size: 20px;
            float: left;
            margin-right: 5px;
        }

        .heart-btn:hover {
            color: #f85b5b;

            .heart {
                font-size: 25px;
            }
        }
    }
}

.frame:hover .top-box {
    transform: translate(-5px, 5px);
}

.frame:hover .bottom-box {
    transform: translate(5px, -5px);
}